package org.rency.common.utils.domain;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * JSON返回基类
 * @author: user_rcy@163.com
 * </br>Created on 2016年4月26日
 * @version: V1.0.0
 * @since JDK 1.8
 */
public class RespBody implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private String callback;
	private boolean success;
	private String message;
	private Map<String, Object> data = new HashMap<String, Object>();
	public String getCallback() {
		return callback;
	}
	public void setCallback(String callback) {
		this.callback = callback;
	}
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Map<String, Object> getData() {
		return data;
	}
	public void setData(Map<String, Object> data) {
		this.data = data;
	}

	@Override
	public String toString(){
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}
}
